home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / ImageCodec.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  4.8 KB  |  189 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ImageCodec.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__IMAGECODEC__') = 'UNDEFINED' THEN
  18. __IMAGECODEC__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25.  
  26.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  27.     include 'Quickdraw.a'
  28.     ENDIF
  29. ;        include 'MixedMode.a'                                        ;
  30. ;        include 'QuickdrawText.a'                                    ;
  31.  
  32.     IF &TYPE('__QDOFFSCREEN__') = 'UNDEFINED' THEN
  33.     include 'QDOffscreen.a'
  34.     ENDIF
  35. ;        include 'Errors.a'                                            ;
  36.  
  37.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  38.     include 'Windows.a'
  39.     ENDIF
  40. ;        include 'Memory.a'                                            ;
  41. ;        include 'Events.a'                                            ;
  42. ;            include 'OSUtils.a'                                    ;
  43. ;        include 'Controls.a'                                        ;
  44. ;            include 'Menus.a'                                        ;
  45.  
  46.     IF &TYPE('__IMAGECOMPRESSION__') = 'UNDEFINED' THEN
  47.     include 'ImageCompression.a'
  48.     ENDIF
  49. ;        include 'Components.a'                                        ;
  50. ;        include 'StandardFile.a'                                    ;
  51. ;            include 'Dialogs.a'                                    ;
  52. ;                include 'TextEdit.a'                                ;
  53. ;            include 'Files.a'                                        ;
  54.  
  55.     IF &TYPE('__MOVIES__') = 'UNDEFINED' THEN
  56.     include 'Movies.a'
  57.     ENDIF
  58. ;        include 'Aliases.a'                                        ;
  59. ;            include 'AppleTalk.a'                                    ;
  60.  
  61. codecGetCodecInfo                EQU        $00
  62. codecGetCompressionTime            EQU        $01
  63. codecGetMaxCompressionSize        EQU        $02
  64. codecPreCompress                EQU        $03
  65. codecBandCompress                EQU        $04
  66. codecPreDecompress                EQU        $05
  67. codecBandDecompress                EQU        $06
  68. codecCDSequenceBusy                EQU        $07
  69. codecGetCompressedImageSize        EQU        $08
  70. codecGetSimilarity                EQU        $09
  71. codecTrimImage                    EQU        $0A
  72. codecRequestSettings            EQU        $0B
  73. codecGetSettings                EQU        $0C
  74. codecSetSettings                EQU        $0D
  75. codecCDSequenceFlush            EQU        $0E
  76. codecSetTimeCode                EQU        $0F
  77.  
  78. codecCanScale                    EQU        1 << 0
  79. codecCanMask                    EQU        1 << 1
  80. codecCanMatte                    EQU        1 << 2
  81. codecCanTransform                EQU        1 << 3
  82. codecCanTransferMode            EQU        1 << 4
  83. codecCanCopyPrev                EQU        1 << 5
  84. codecCanSpool                    EQU        1 << 6
  85. codecCanClipVertical            EQU        1 << 7
  86. codecCanClipRectangular            EQU        1 << 8
  87. codecCanRemapColor                EQU        1 << 9
  88. codecCanFastDither                EQU        1 << 10
  89. codecCanSrcExtract                EQU        1 << 11
  90. codecCanCopyPrevComp            EQU        1 << 12
  91. codecCanAsync                    EQU        1 << 13
  92. codecCanMakeMask                EQU        1 << 14
  93. codecCanShift                    EQU        1 << 15
  94. codecCanAsyncWhen                EQU        1 << 16
  95. codecCanShieldCursor            EQU        1 << 17
  96. codecCanManagePrevBuffer        EQU        1 << 18
  97.  
  98. CodecCapabilities         RECORD    0
  99. flags                     ds.l    1
  100. wantedPixelSize             ds.w    1
  101. extendWidth                 ds.w    1
  102. extendHeight             ds.w    1
  103. bandMin                     ds.w    1
  104. bandInc                     ds.w    1
  105. pad                         ds.w    1
  106. time                     ds.l    1
  107. sizeof                     EQU    20
  108.                         ENDR
  109.  
  110.  
  111. codecConditionFirstBand            EQU        1 << 0
  112. codecConditionLastBand            EQU        1 << 1
  113. codecConditionFirstFrame        EQU        1 << 2
  114. codecConditionNewDepth            EQU        1 << 3
  115. codecConditionNewTransform        EQU        1 << 4
  116. codecConditionNewSrcRect        EQU        1 << 5
  117. codecConditionNewMask            EQU        1 << 6
  118. codecConditionNewMatte            EQU        1 << 7
  119. codecConditionNewTransferMode    EQU        1 << 8
  120. codecConditionNewClut            EQU        1 << 9
  121. codecConditionNewAccuracy        EQU        1 << 10
  122. codecConditionNewDestination    EQU        1 << 11
  123. codecConditionFirstScreen        EQU        1 << 12
  124. codecConditionDoCursor            EQU        1 << 13
  125. codecConditionCatchUpDiff        EQU        1 << 14
  126. codecConditionCodecChangedMask    EQU        1 << 31
  127.  
  128. codecInfoResourceType            EQU        'cdci'
  129. codecInterfaceVersion            EQU        2
  130.  
  131. CodecCompressParams     RECORD    0
  132. sequenceID                 ds.l    1
  133. imageDescription         ds.l    1
  134. data                     ds.l    1
  135. bufferSize                 ds.l    1
  136. frameNumber                 ds.l    1
  137. startLine                 ds.l    1
  138. stopLine                 ds.l    1
  139. conditionFlags             ds.l    1
  140. callerFlags                 ds.w    1
  141. capabilities             ds.l    1
  142. progressProcRecord         ds        ICMProgressProcRecord
  143. completionProcRecord     ds        ICMCompletionProcRecord
  144. flushProcRecord             ds        ICMFlushProcRecord
  145. srcPixMap                 ds        PixMap
  146. prevPixMap                 ds        PixMap
  147. spatialQuality             ds.l    1
  148. temporalQuality             ds.l    1
  149. similarity                 ds.l    1
  150. dataRateParams             ds.l    1
  151. reserved                 ds.l    1
  152. sizeof                     EQU    182
  153.                         ENDR
  154.  
  155. CodecDecompressParams     RECORD    0
  156. sequenceID                 ds.l    1
  157. imageDescription         ds.l    1
  158. data                     ds.l    1
  159. bufferSize                 ds.l    1
  160. frameNumber                 ds.l    1
  161. startLine                 ds.l    1
  162. stopLine                 ds.l    1
  163. conditionFlags             ds.l    1
  164. callerFlags                 ds.w    1
  165. capabilities             ds.l    1
  166. progressProcRecord         ds        ICMProgressProcRecord
  167. completionProcRecord     ds        ICMCompletionProcRecord
  168. dataProcRecord             ds        ICMDataProcRecord
  169. port                     ds.l    1
  170. dstPixMap                 ds        PixMap
  171. maskBits                 ds.l    1
  172. mattePixMap                 ds.l    1
  173. srcRect                     ds        Rect
  174. matrix                     ds.l    1
  175. accuracy                 ds.l    1
  176. transferMode             ds.w    1
  177. frameTime                 ds.l    1
  178. reserved                 ds.l    1
  179. matrixFlags                 ds.b    1
  180. matrixType                 ds.b    1
  181. dstRect                     ds        Rect
  182. sizeof                     EQU    160
  183.                         ENDR
  184.  
  185.  
  186. matrixFlagScale2x                EQU        1 << 7
  187.  
  188.     ENDIF ; __IMAGECODEC__
  189.